home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F30290_span.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2001-10-28  |  1.2 KB  |  32 lines

  1. <xsl:stylesheet version="1.0" 
  2. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  4. >
  5.   <xsl:import href="takeWhile.xsl"/>
  6.   
  7.   <xsl:template name="span">
  8.     <xsl:param name="pList" select="/.."/>
  9.     <xsl:param name="pController" select="/.."/>
  10.     <xsl:param name="pContollerParam" select="/.."/>
  11.     <xsl:param name="pParam0" select="/.."/>
  12.     <xsl:param name="pElementName" select="'list'"/>
  13.     
  14.     <xsl:variable name="vRTF-Positive">
  15.         <xsl:call-template name="takeWhile">
  16.             <xsl:with-param name="pList" select="$pList"/>
  17.             <xsl:with-param name="pController" select="$pController"/>
  18.             <xsl:with-param name="pContollerParam" select="$pContollerParam"/>
  19.             <xsl:with-param name="pParam0" select="$pParam0"/>
  20.         </xsl:call-template>
  21.     </xsl:variable>
  22.     
  23.     <xsl:variable name="vPositive" select="msxsl:node-set($vRTF-Positive)/*"/>
  24.     
  25.     <xsl:element name="{$pElementName}">
  26.       <xsl:copy-of select="$vPositive"/>
  27.     </xsl:element>
  28.     <xsl:element name="{$pElementName}">
  29.         <xsl:copy-of select="$pList[position() > count($vPositive)]"/>
  30.     </xsl:element>
  31.   </xsl:template>
  32. </xsl:stylesheet>